<?php
/**
 * Name: Comment.php
 * Created by: Chung Hoang Long
 * Created Date: 11-10-2013
 * Description: Thao luan ve Artifact 
 */

class Comment {
	
	// PK
	private $_UserPK; // int
	
	// FK
	private $_ArtifactPK; // int 
	
	private $_CommentedDate; // datetime
	private $_Content; // string
	
	public function __construct($userPK, $artifactPK, $commentedDate, $content) {
		$this->_UserPK = $userPK;
		$this->_ArtifactPK = $artifactPK;
		$this->_CommentedDate = $commentedDate;
		$this->_Content = $content;
	}
	
	/**
	 * 
	 * @return int
	 */
	public function getUserPK() {
		return $this->_UserPK;
	}
	
	/**
	 * 
	 * @param int $userPK
	 */
	public function setUserPK($userPK) {
		$this->_UserPK = $userPK;
	}
	
	/**
	 *
	 * @return int
	 */
	public function getArtifactPK() {
		return $this->_ArtifactPK;
	}
	
	/**
	 *
	 * @param int $artifactPK
	 */
	public function setArtifactPK($artifactPK) {
		$this->_ArtifactPK = $artifactPK;
	}
	
	/**
	 * 
	 * @return DateTime
	 */
	public function getCommentedDate() {
		return $this->_CommentedDate;
	}
	
	/**
	 * 
	 * @param DateTime $commentedDate
	 */
	public function setCommentedDate($commentedDate) {
		$this->_CommentedDate = $commentedDate;
	}

	/**
	 *
	 * @return string
	 */
	public function getContent() {
		return $this->_Content;
	}
	
	/**
	 *
	 * @param string $content
	 */
	public function setContent($content) {
		$this->_Content = $content;
	}
	
}
?>